package com.bdqn.BookManage.biz.impl;

import com.bdqn.BookManage.biz.OrderBiz;
import com.bdqn.BookManage.dao.OrderDao;
import com.bdqn.BookManage.dao.impl.OrderDaoImpl;
import com.bdqn.BookManage.po.Order;

/**
 * @author : CP
 * @version: 1.0
 * @program : BookManage
 * @description : 订单信息业务接口实现类
 * @date : 2020-07-31 14:36
 **/
public class OrderBizImpl implements OrderBiz {
    OrderDao orderDao = new OrderDaoImpl();

    @Override
    public boolean add(Order order) {
        return orderDao.add(order);
    }

    @Override
    public Order queryByNo(String no) {
        return orderDao.queryByNo(no);
    }

    @Override
    public boolean amend(Order order) {
        return orderDao.amend(order);
    }
}
